//
//  WDUploadData.h
//  Zhihuijinfu
//
//  Created by 王笛 on 2017/2/14.
//  Copyright © 2017年 王笛. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef NS_ENUM(NSInteger, UploadStatus)
{
    UploadStatusWaiting = 0,//待上传
    UploadStatusRunning,//正在上传
    UploadStatusError,//上传错误
    UploadStatusFinish//上传完成
};

typedef NS_ENUM(NSInteger, ImageType)
{
    ImageTypeIDCard = 100,//身份证
    ImageTypeDriveLicence = 101,//驾驶证
    ImageTypeBankCard  = 103,//银行卡
    ImageTypeBankStatement = 105,//银行流水
    ImageTypeResideCer = 106,//居住证明
    ImageTypeJobCer = 111,//工作证明
    ImageTypeCredit = 112,//征信授权
    ImageTypeApplyList = 120,//申请表
    ImageTypeOther = 200//其他
};

@interface WDUploadData : NSObject
/** 主键id */
@property (nonatomic, strong) NSString *id;
/** 上传图片的id */
@property (nonatomic, strong) NSString *objectId;
/** 订单id */
@property (nonatomic, strong) NSString *financeId;
/** 商户id */
@property (nonatomic, strong) NSString *supplierId;
/** 上传状态编号 */
@property (nonatomic, assign) UploadStatus status;
/** 图片的种类编号 */
@property (nonatomic, assign) ImageType imageType;
/** 图片种类名称 */
@property (nonatomic, strong) NSString *imageTypeName;
/** 图片名称 */
@property (nonatomic, strong) NSString *imageName;
/** 原图url */
@property (nonatomic, strong) NSString *url;
/** 缩略图url */
@property (nonatomic, strong) NSString *thumbUrl;
/** 文件名称 */
@property (nonatomic, strong) NSString *fileName;
/** 文件总大小 */
@property (nonatomic, strong) NSString *fileSize;
/** 当前上传的大小 */
@property (nonatomic, strong) NSString *uploadSize;
/** 图片的沙盒路径 */
@property (nonatomic, strong) NSString *imagePath;
/** mimeType:用于区分文件后缀名 */
@property (nonatomic, strong) NSString *mimeType;
/** 材料类型 1：贷款材料 2：请款材料 */
@property (nonatomic, strong) NSString *materialType;
/** 备用字段 */
@property (nonatomic, strong) NSString *extras;

@end
